Skip to content

Move access/call family out-of-line into MLIRGenAccessCall.cpp (§1)#226

Merged
ASDAlexander77 merged 1 commit into
mainfrom
refactor/split-accesscall
Jul 13, 2026
Merged

Move access/call family out-of-line into MLIRGenAccessCall.cpp (§1)#226
ASDAlexander77 merged 1 commit into
mainfrom
refactor/split-accesscall

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Summary

§1 TU split — same pattern as #217#225.

33 property/element-access and call/new methods move from MLIRGenImpl.h into a new MLIRGenAccessCall.cpp TU: the five mlirGenPropertyAccessExpression overloads plus Logic/BaseLogic, ClassMembersAccess (both overloads), accessor/index/generic-method/base-class access, both InterfaceMembers overloads, extensionFunctionLogic, mlirGenElementAccess, mlirGenCallExpression/mlirGenCall/mlirGenCallBuiltInFunction/mlirGenCallThisMethod/mlirGenCallConstructor, callIteratorNext, processOperandSpreadElement, mlirGenArrayReduce, and the NewClassInstance* family. The mlirGenElementAccessTuple<T> and mlirGenCallFunction<T> templates stay inline.

  • 1,500 lines out of the header (13,402 → 11,902)
  • Extractor now handles K&R-brace signatures () { on the signature line): declaration gets );, definition gets ) plus a normalized brace line
  • One template was initially swept out and caught by the compiler; restored inline
  • Multiset reconciliation: 7 residuals, all signature transformations (4 K&R lines, 1 default-arg line, 2 first-lines); zero body lines lost

Test plan

  • Clean rebuild
  • 683/683 ctest tests passed (157 s)

🤖 Generated with Claude Code

…w doc 1)

33 property/element-access and call/new methods (property access
overloads + logic + base logic, class members/accessor/index/generic-
method/base-class access, interface members, extension functions,
element access, call expression/builtin/this-method/constructor,
iterator next, spread operands, class instantiation family) move from
MLIRGenImpl.h into a new MLIRGenAccessCall.cpp TU; header keeps
declarations. mlirGenElementAccessTuple<T> and mlirGenCallFunction<T>
templates stay inline. 1500 lines out of the header (13402 -> 11902).

Extractor: K&R-brace signatures now handled (decl gets ");", def gets
")" plus a normalized brace line).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ASDAlexander77 ASDAlexander77 merged commit 841ecc5 into main Jul 13, 2026
2 checks passed
@ASDAlexander77 ASDAlexander77 deleted the refactor/split-accesscall branch July 13, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant